package com.web.dao.service;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.web.dao.RoleDAO;
import com.web.dao.domain.Role;

/**
 * 
 * @author NhuKhang
 *
 */

public class RoleServiceImpl implements RoleService {

    protected final Log logger = LogFactory.getLog(getClass());

    private RoleDAO roleDAO;

    public void setRoleDAO(RoleDAO roleDAO) {
        this.roleDAO = roleDAO;
    }

	public List<Role> findAll() {
		return roleDAO.findAll();
	}

	public Role save(Role role) {
		return roleDAO.save(role);
	}
}